package com.yuan.department.service;

import java.sql.SQLException;
import java.util.List;

public interface IBaseService<T> {
    public boolean save(T t) throws SQLException;

    public boolean update(T t) throws SQLException;

    public boolean remove(Integer id) throws SQLException;

    public T queryById(Integer id) throws SQLException;

    public List<T> list() throws SQLException;
}
